/*
 * @Author: gyh
 * @Date: 2024-05-09 17:02:29
 * @LastEditTime: 2024-05-09 18:07:51
 */
import type { editProfileParams, profileDetails } from '@/types/member'
import { request } from '@/utils/request'

export const getProfileApi = () => {
  return request<profileDetails>({
    method: 'GET',
    url: '/member/profile',
  })
}

export const editProfileApi = (data: editProfileParams) => {
  return request<profileDetails>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
